package JLB_Chapter_05;
// StringSub2
public class code_05_15 {
    public static void main(String[] args) {
        String str = "闭门造车，出门合辙。";
        String substr = str.substring(0,4);
        System.out.println("字符串str的前半句是：" + substr);
    }
}
